import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
      resurceDatea: [],
      UsernameValue: ""
  },
  getters: {
    getusernameValue: state => state.UsernameValue
  },
  mutations: {
    setData(state, all) { //设置参数
      state.searchData = all;
      console.log(state.searchData);
    },
    setUsername(state,username){
    	state.UsernameValue = username
    }
  },
  actions: {
    
  },
  modules: {
  }
})
